/* 
 * File:   Definitions.h
 * Author: ja1e09
 *
 * Created on July 28, 2011, 6:47 PM
 */

#ifndef DEFINITIONS_H
#define	DEFINITIONS_H

// *** Some Macros and constants
#define SAFE_RELEASE_DELETE(x) if (x) {x->Release();delete x;x=0;}
#define SAFE_DELETE(x) if (x) {delete x; x = 0; }
#define SAFE_RELEASE(x) if (x) { x->Release(); x = 0; }
#define SAFE_FREE(x) if (x) { free(x); x = 0; }

#define RADTODEG(x) ((x)*57.295779513082320876798154814105)
#define DEGTORAD(x) ((x)/57.295779513082320876798154814105)

// PI (180�)
//#define M_PI 3.1415926535897932384626433832795
// 2*PI (360�)
#define TWO_PI 6.283185307179586476925286766559
// PI/2 (90�)
#define HALF_PI 1.5707963267948966192313216916398
// PI/4 (45�)
#define HALF_HALF_PI 5.4977871437821381673096259207391

// Main Log File
#define LOG_FILE "DarkFiber.log"

// Config XML File Name
#define CONFIG_FILE "Config.xml"

#endif	/* DEFINITIONS_H */

